﻿@model AssetManageSystem.ViewModel.AssetManage.AssetTypeVMs.AssetTypeListVM
@inject IStringLocalizer<Program> Localizer;

@* 通过指定id-field="Searcher.DepId"，将树中选中的值赋值给Search.DepId字段并刷新内部grid *@
<wt:treecontainer items="AllParents" id-field="Searcher.ParentId" height="500">
  @* 将普通的SearchPanel和Grid写在TreeContainer内部即可实现tree和grid的联动 *@
  <wt:searchpanel vm="@Model" reset-btn="true">
    <wt:row items-per-row="ItemsPerRowEnum.Three">
      <wt:textbox field="Searcher.TypeName" />
      <wt:textbox field="Searcher.ParentId" />
    </wt:row>
  </wt:searchpanel>
  <wt:grid vm="@Model" url="/AssetManage/AssetType/Search" />
</wt:treecontainer>